import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false

import globalMixin from './mixins'
Vue.mixin(globalMixin)
// vuex
import store from "./store"
Vue.prototype.$store = store;
//ui
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)
uni.$u.config.unit = 'rpx'

// 引入自定义工具
import tools from '@/common/tools.js'
import utils from '@/common/utils.js'
Vue.prototype.$tools = tools;
Vue.prototype.$utils = utils;
//小程序分享
let mpShare = require('@/uni_modules/uview-ui/libs/mixin/mpShare.js');
Vue.mixin(mpShare)

import request from "@/common/request.js"
Vue.prototype.$request = request;

import navbar from "./components/navbar.vue"
Vue.component("navbar", navbar)

import Tabbar from '@/components/tabbar.vue';
Vue.component("Tabbar", Tabbar)


import Tabbar1 from '@/components/tabbar1.vue';
Vue.component("Tabbar1", Tabbar1)


import Tabbar2 from '@/components/tabbar2.vue';
Vue.component("Tabbar2", Tabbar2)


App.mpType = 'app'
const app = new Vue({
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif